package tech.aistar;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(value = "tech.aistar.mapper")
@EnableTransactionManagement//service层使用式事务@Transactional
@ServletComponentScan//开启servlet相关的注解
public class PetforumsApplication {

	public static void main(String[] args) {
		SpringApplication.run(PetforumsApplication.class, args);
	}

}
